<cfoutput>
	#dspDocumentHeader()#
	<h2>Routing Medication Monitoring Record</h2>
	<cfif PARAMS.key NEQ 0>#dspFormButtons(key=PARAMS.key, action=PARAMS.controller)#</cfif>
	<fieldset>
		<table border="1" width="100%"class="forms center" cellpadding="6">
			<tr>
				<cfset Labels = ["Allergies","Time","Staff and Consumer Must Sign All Monitoring Times"]>
				<cfloop from="1" to="#ArrayLen(Labels)#" index="intCol">
					<td <cfif intCol EQ 1>colspan="2"<cfelseif intCol GT 2> colspan="6" </cfif> <cfif intCol EQ 2>rowspan="2"</cfif> nowrap="true">
						#Labels[intCol]#<cfif intCol EQ 1>: <input type="text" /></cfif>
					</td>
				</cfloop>
			</tr>		
			<tr>
				<td>Date/Initials Transcribed</td>
				<td>Medication Information </td>
				<cfloop from="1" to="6" index="intCol">
					<td>Date</td>
				</cfloop>
			</tr>
			
			<cfset Labels = ["Drug","Dosage","Frequency","Route","Indication"]>
			<cfloop from="1" to="#ArrayLen(Labels)#" index="intRow">
				<tr>
					<cfif intRow EQ 1><td rowspan="#ArrayLen(Labels)#">&nbsp;</td></cfif>
					<td>
						#labels[intRow]#
						<cfif labels[intRow] IS "Dosage">
							#dspDosage()#
						<cfelseif labels[intRow] IS "Frequency">
							#dspFrequency()#
						<cfelseif labels[intRow] IS "Route">
							#dspRoutes()#
						<cfelse>
							<input type="text" class="normalll" />
						</cfif>
					</td>
					<cfif intRow EQ 1><td rowspan="#ArrayLen(labels)#">#timeSelectTags(name="", minuteStep="30", order="hour,minute",twelveHour=true,combine=true)#</td></cfif>
					<cfloop from="1" to="6" index="intCol">					
						<td class="left" nowrap="true">
							
						</td>
					</cfloop>
				</tr>
			</cfloop>
		</table>
		
		<h4>Consumer Name: <span style="font-weight: normal;">#Consumer.firstName# #Consumer.lastName#</span></h4>
	</fieldset>
	<cfif PARAMS.key NEQ 0>#dspFormButtons(key=PARAMS.key, action=PARAMS.controller)#</cfif>
</cfoutput>